import os

def build(path):
    with open(path,"w",encoding = "utf-8")as w:
        w.write("\n")

def mkdirs(path):
    if not os.path.exists(path):
        os.makedirs(path)


olpath = input("path:")
oldpath = olpath.split("\\")
newpath = os.getcwd()

path = os.path.join(newpath,oldpath[-1])
print(path)

for root,dirs,files in os.walk(olpath):
    for file in files:
        root = root.replace(olpath,path)
        print(root)
        mkdirs(root)
        build(os.path.join(root,file))
